/**
 * Created with IntelliJ IDEA
 * Description:
 * User:恋恋
 * Date:2022-09-01
 * Time:16:39
 */

public class Student {
    public String name;
    public int age;


    public void setting(String name,int age)
    {
        this.name=name;
        this.age=age;
    }
    public void print()
    {
        System.out.println(name);
        System.out.println(age);
    }
    public void str()
    {
        this.print();
    }

    public static void main(String[] args) {
        Student student1=new Student();
        student1.setting("陈恋",20);
    }
}
